package kr.hkit.PowerJava.chapter08.work;

class Box {
	private int width;
	private int length;
	private int height;

	public Box(int width, int length, int height) {
		this.width = width;
		this.length = length;
		this.height = height;
	}
	public Box() {
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public int getVolume() {
		int vol = width * length * height;
		return vol;
	}
	public void print() {
		System.out.println("width = " + width + " length = " + length + " height = "+ height);
	}
}
